package com.itheima.homework.One;

public class Rectangle extends Shape{
    int chang;
    int kuan;

    public Rectangle(int chang, int kuan) {
        this.chang = chang;
        this.kuan = kuan;
    }

    @Override
    public void S() {
        System.out.println(chang*kuan);
    }

    @Override
    public void L() {
        System.out.println((chang+kuan)*2);
    }
}
